properties of the legendre symbol